Cytosim  PI
Cytoskeleton Simulator
gle_color_int Class Reference

Public Member Functions

 gle_color_int (uint32_t s)
 
void set_rgbaf (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 
void set_rgba (GLubyte r, GLubyte g, GLubyte b, GLubyte a)
 
void set_white ()
 
void set_black ()
 
bool operator== (gle_color_int col)
 
GLubyte red () const
 
GLubyte green () const
 
GLubyte blue () const
 
GLubyte alpha () const
 
GLfloat redf () const
 
GLfloat greenf () const
 
GLfloat bluef () const
 
GLfloat alphaf () const
 
GLfloat brightness () const
 
bool opaque () const
 
bool transparent () const
 
bool visible () const
 
gle_color_int fade (GLubyte s) const
 
gle_color_int fade_alpha (GLubyte s) const
 
gle_color_int set_alpha (GLubyte s) const
 
gle_color_int match_alpha (gle_color_int col) const
 
gle_color_int mix (gle_color_int col) const
 
void color () const
 set current OpenGL color by calling glColor
 
void colorT () const
 set current color, with alpha = 7F
 
void colorT (short s) const
 set current color, but divide alpha component by 2^s
 
void colorA (GLfloat s) const
 set current color, but with s as alpha component
 
void clearColor () const
 
void front () const
 set FRONT material property for lighting
 
void back () const
 set BACK material property for lighting
 
void back (short s) const
 set BACK material property for lighting
 
std::string str () const
 conversion to string